home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 2003 June / macformat-130.iso / mac / Reviewed⁄Demos / Spearhead Demo / demota / pak1.pk3 / models / fx / bh_sand_lite.tik < prev    next >
Encoding:
Text File  |  2002-10-21  |  1.2 KB  |  62 lines

  1. TIKI
  2. setup
  3. {
  4.     scale 1.0
  5.     path models/fx/dummy
  6.     skelmodel dummy2.skd
  7. }
  8.  
  9. init
  10. {
  11.     server
  12.     {
  13.     }
  14.     client
  15.     {
  16.         //cache some stuff used in this effect
  17.         cache bhole_snow.spr // cache the bullet hole shader
  18.         cache bh_sand.spr
  19.         cache vsssource.spr
  20.  
  21.         // initial impact sprite
  22.         sfx originspawn
  23.         (
  24.             model bh_sand.spr        // 64x64
  25.             spritegridlighting
  26.             alpha 1.0
  27.             angles 0 0 0
  28.             offsetalongaxis 0 0 0
  29.             offset 0 0 16            // z offset is image heigt * scale / 2
  30.             count 1
  31.             life 0.25
  32.             scale 0.25
  33.             scalerate 16
  34.             randvel 0 0 128            // z vel is image height * scale * scalerate / 2
  35.             fade
  36.             physicsrate every        // simple velocity physics are cheap
  37.             color .8 .8 .8
  38.         )
  39.  
  40.         // drifting smoke
  41.         sfx originspawn
  42.         (
  43.             model vsssource.spr        // sets the type of smoke
  44.             count 4
  45.             life  1
  46.             scale .5
  47.             alpha 0.75
  48.             color 0.45 0.45 0.4    // RBG color of the smoke
  49.             velocity 6    // base velocity away from the surface
  50.             randvelaxis random 16 crandom 24 crandom 24
  51.             cone 20 12            // height radius
  52.             fade
  53.             spritegridlighting
  54.         )
  55.     }
  56. }
  57.  
  58. // This section is just needed to be a valid tiki file
  59. animations
  60. {
  61.     idle dummy2.skc 
  62. }